package com.bgi.uims.common.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bgi.uims.common.dao.ICommonDao;
import com.bgi.uims.common.dto.Common;
import com.bgi.uims.common.dto.PageVo;
import com.bgi.uims.common.service.ICommonService;

/**
 * 
 * ClassName: CommonService <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2014-10-20 下午02:08:50 <br/>
 *
 * @author fukun
 * @version 
 * @since JDK 1.7
 */
@Service
@Transactional
public class CommonService implements ICommonService{
	
	@Resource
	private ICommonDao commonDao;

	public Integer delete(Common obj) {
		// TODO Auto-generated method stub
		return commonDao.delete(obj);
	}

	public Object insert(Common obj) {
		// TODO Auto-generated method stub
		return commonDao.insert(obj);
	}

	public PageVo query(Common obj) {
		// TODO Auto-generated method stub
		return commonDao.query(obj);
	}

	public Object queryOne(Common obj) {
		// TODO Auto-generated method stub
		return commonDao.queryOne(obj);
	}

	public Integer update(Common obj) {
		// TODO Auto-generated method stub
		return commonDao.update(obj);
	}

	
}
